package com.dingwen.treasure.mybatisplus.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dingwen.treasure.base.pojo.vo.PageVo;
import com.dingwen.treasure.model.entity.mybatisplus.SysUser;

import java.util.List;


/**
 * @author dingwen
 * @description 针对表【sys_user(系统用户表)】的数据库操作Service
 * @createDate 2022-05-01 20:09:53
 */
public interface SysUserService extends IService<SysUser> {
    /**
     * 测试分页查询
     *
     * @param page    页
     * @param deleted 删除
     * @return {@link E}
     */
    <E extends IPage<SysUser>> E testSelectPage(E page, Integer deleted);

    /**
     * 优化分页查询 </br>
     * <p>
     * 需要配合条件查询、总记录条数查询
     * </p>
     *
     * @param pageNum  页面num
     * @param pageSize 页面大小
     * @return {@link PageVo}<{@link List}<{@link SysUser}>>
     */
    PageVo<SysUser> optimizeSelectPage(Integer pageNum, Integer pageSize);


}
